-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Orderbook: Add GetDepth to Base #1328
Conversation
Base.GetDepth returns the concrete book of which Base is a copy This is probably useful for immutably monitoring orderbook health and state whereas FetchOrderbook would trigger a refresh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Base already has access to the fields to make the call for GetDepth
, but this is still a nice enough helper to avoid needing to provide params anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit.
Base does, but nothing outside it does, right? |
All comments addressed. We discussed why this method is helpful, and with some refactoring/improvement/something in bitfinex maybe we could get away with calling FormatExchangePair before calling Fetch ever, or something. |
7c66c07
to
772bfb6
Compare
Ah. This is failing when run as a whole suite. Will work out why. |
772bfb6
to
7267545
Compare
Yep. It was that. Fixed. |
7267545
to
0a1500a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK! Thanks for making those changes
* Orderbook: Add GetDepth to Base Base.GetDepth returns the concrete book of which Base is a copy This is probably useful for immutably monitoring orderbook health and state whereas FetchOrderbook would trigger a refresh. * Orderbook: Reword GetDepth comment * Orderbook: Add test for Base.GetDepth
Base.GetDepth returns the concrete book of which Base is a copy This is probably useful for immutably monitoring orderbook health and state whereas FetchOrderbook would trigger a refresh.
Type of change
How has this been tested